V=5;
Ur=5;
Uc=0;
T=1e-3;
R=150;
C=50e-6;
for k=1:100
 Uc=((R*C*Uc)+(V*T))/((R*C)+(T));
 Ur=V-Uc;
Ucmas(k)=Uc

end
plot(1:100,Ucmas)